package com.example.enterprise.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.enterprise.R
import com.example.enterprise.entity.MerchantEntityItem

class MerchantAdapter:BaseQuickAdapter<MerchantEntityItem,BaseViewHolder>(R.layout.item_merchant) {
    override fun convert(holder: BaseViewHolder, item: MerchantEntityItem) {
        holder.setText(R.id.merchant_name,item.enterpriseName)
        holder.setText(R.id.merchant_type,item.status)
        holder.setText(R.id.merchant_message,item.contactName)
        holder.setText(R.id.merchant_location,item.entryTime)
    }

}